@use '../core' as *;

.container {
    height: calc(100vh - 210px);
    overflow: hidden;
    display: flex;
    flex-direction: column;

    &.fullscreen {
        position: fixed;
        top: 0px;
        left: 0px;
        width: 100vw;
        height: 100vh;
        z-index: 100;
        padding-left: $spacing-size-4;
        padding-right: $spacing-size-4;
        padding-bottom: $spacing-size-4;
        background: white;

        .optionsContainer {
            width: 500px;
        }

        .chartContainer {
            width: calc(100vw - 500px);
        }
    }

    h2 {
        margin-top: 0;
    }
}

.header {
    display: flex;
    justify-content: space-between;
    overflow-x: visible;

    li {
        margin-bottom: 0;
    }
}

.content {
    display: flex;
    flex-direction: row;
    flex: 1 1 auto;
    gap: $spacing-size-4;
    overflow-x: scroll;
    overflow-y: hidden;
}

.optionsContainer {
    width: 40%;
    min-width: 350px;
}

.options {
    margin: 0 0 10px 10px;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.chartContainer {
    display: flex;
    flex-direction: column;
    width: 60%;
    min-width: 350px;
    gap: $spacing-size-4;
    overflow-y: scroll;
}

.chart {
    position: relative;
    overflow: hidden;
    height: 50%;
    min-height: 250px;
}

.codeContainer {
    height: 50%;
    overflow: auto;
}
